/**
 * Created by rockyren on 14/11/18.
 */
var productApp = angular.module('productApp',['ngRoute','commonServices']);

/**
 * product的ng路由
 */

productApp.config(['$routeProvider',function($routeProvider){
  var tplsUrl = 'ngApp/product/tpls/';
  $routeProvider
    .when('/',{
      templateUrl: tplsUrl + 'product-index.html',
      controller: 'productIndexController'
    })

    .when('/:productId',{
      templateUrl: tplsUrl + 'product-info.html',
      controller: 'productInfoController'
    })
    .otherwise({
      redirectTo: '/'
    })
}]);